<ul class="breadcrumb">
	<li><a href="{$BASE_PATH}admin/pessoa">Agente</a></li>
	<li>Listar</li>
</ul>
<table id='dataTable' class="tableList">
	<thead>
		<tr>
			<th><a href='#'>#Cod</a></th>
			<th><a href='#'>Tipo</a></th>
			<th><a href='#'>Nome/Razão Social</a></th>
			<th><a href='#'>Apelido/Fantasia</a></th>
			<th><a href='#'>CPF/CNPJ</a></th>
			<th><a href='#'>Sexo</a></th>
			<th><a href='#'>Status</a></th>
			<th><a href='#'>Criado em</a></th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$lista key=k item=i}
		<tr>
			<td>{$i->getId()}</td>
			<td>{$i->getTpPessoa()}</td>
			<td class='txtLeft'>
				{$i->getDsNome()}
				<ul class="actionsTable">
					<li>
						{$Action->getClass('\Helper\Action\Admin\Pessoa')->atualizar($i)}
						{$Action->getClass('\Helper\Action\Admin\Pessoa')->deletar($i)}
					</li>
				</ul>
			</td>
			<td class='txtLeft'>{$i}</td>
			<td class='txtLeft'>{$i->getCpfCnpj()}</td>
			<td class='txtLeft'>{$i->getTpGenero()}</td>
			<td class='txtLeft'>{$i->getFlStatus()}</td>
			<td class='txtLeft'>{$i->getDtCadastro()->format('d/m/Y H:i')}</td>
		</tr>
		{/foreach}
	</tbody>
</table>
{literal}
<script type="text/javascript">
	$(document).ready(function() {
		initDataTable('#dataTable');
	})
</script>
{/literal}
